package com.edu.order.config;

import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 默认重试配置
 * public Default() {this(100L, TimeUnit.SECONDS.toMillis(1L), 5);}
 */
@Configuration
public class RetryConfig {
    @Bean // 配置Feign重试
    public Retryer retryer() {
        return new Retryer.Default();
    }
}
